import {
  fileforcebatch,
  fileSelectSelectByBpkBst
} from '@/api/common/fileCommon'

const fileCommon = {
  actions: {
    // 删除附件
    fileforcebatch({ commit }, args) {
      return new Promise((resolve, reject) => {
        fileforcebatch(args).then(response => {
          resolve(response.data)
        }).catch(error => {
          reject(error)
        })
      })
    },
    fileSelectSelectByBpkBst({ commit }, args) {
      return new Promise((resolve, reject) => {
        fileSelectSelectByBpkBst(args).then(response => {
          resolve(response.data)
        }).catch(error => {
          reject(error)
        })
      })
    }
  }
}

export default fileCommon
